package com.ruoyi.core.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.core.service.PacService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author xiaom
 * @Date 2021/4/13 10:32
 * @Version 1.0.0
 * @Description <>
 **/
@RestController
@Validated
@Api(tags = "pac管理")
@RequestMapping("/pac-server")
public class PacController extends BaseController {

    @Autowired
    private PacService pacService;

    @GetMapping("/pacCode")
    @ApiOperation("获取PAC规则")
    public AjaxResult pacCode(){
        return AjaxResult.success(pacService.getPacCode());
    }
}
